home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / baseaddr.c < prev    next >
Text File  |  1986-05-12  |  263b  |  16 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6. extern unsigned seg();
  7.  
  8.  
  9. int BaseAddress(Y)
  10. int        Y;
  11. {
  12.     return((Y % 2) * 8192 + 40 * (Y & 0xfffe));
  13. }
  14.  
  15.  
  16.